﻿using QuanLyBanHang.DAL;
using QuanLyBanHang.DTO;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QuanLyBanHang.BLL
{
   public class HoaDonBLL
    {
       public int ThemHD(HoaDonDTO hd)
       {
           return HoaDonDAL.ThemHoaDon(hd);
       }
       public int SuaHD(HoaDonDTO hd)
       {
           return HoaDonDAL.SuaHD(hd);
       }
       public int XoaHD(HoaDonDTO hd)
       {
           return HoaDonDAL.XoaHD(hd);
       }
       //lay tat ca thong tin hoa don
       public static DataTable LayTatCaThongTinHoaDon(HoaDonDTO hd)
       {
           return HoaDonDAL.LayTatCaThongTinHoaDon(hd);

       }
       public static DataTable LayTTHoaDonTheoDK(string dieukien)
       {
           return HoaDonDAL.LayTTHoaDonTheoDK(dieukien);
       }
       //lay ma san phan 
       public static DataTable LayThongTinKhachHang(string dieukien)
       {
           return HoaDonDAL.LayThongTinKhachHang(dieukien);
       }
       //lay tt nhan vien
       public static DataTable LayThongTinNhanVien(string dieukien)
       {
           return HoaDonDAL.LayThongTinNhanVien(dieukien);
       }
    }
}
